import Vue from 'vue'
import Router from 'vue-router'
import Notepad from '@/views/Notepad'
import Editor from '@/views/Editor'
import NoteFolder from '@/views/NoteFolder'
import Trash from '@/views/Trash'
import Game from '@/views/Game'
import Comput from '@/views/Comput'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      redirect: '/notepad'
    },
    {
      path: '/notepad',
      name: 'notepad',
      component: Notepad
    },
    {
      path: '/editor',
      name: 'editor',
      component: Editor
    },
    {
      path: '/noteFolder',
      name: 'NoteFolder',
      component: NoteFolder
    },
    {
      path: '/trash',
      name: 'Trash',
      component: Trash
    },
    {
      path: '/game',
      name: 'Game',
      component: Game,
      meta: {
        title: '小游戏'
      }
    },
    {
      path: '/comput',
      name: 'Comput',
      component: Comput,
      meta: {
        title: '计算器'
      }
    }
  ]
})
